
/**
 * Created by IntelliJ IDEA.
 * User: MrN
 * Date: 21.11.11
 * Time: 20:15
 * To change this template use File | Settings | File Templates.
 */
public class News
{
    private String url, title, description, date;
    private int id, firmID, newsType;

    public News(int id, String url, String title, String description, String date, int firmID, int newsType)
    {
        this.id = id;
        this.url = url;
        this.title = title;
        this.description = description;
        this.date = date;
        this.firmID = firmID;
        this.newsType = newsType;
    }
     public News(String url, String title, String description, String date)
    {
        this.url = url;
        this.title = title;
        this.description = description;
        this.date = date;
    }

    public int getId()
    {
        return id;
    }
    public String getUrl()
    {
        return url;
    }

    public String getTitle()
    {
        return title;
    }

    public String getDescription()
    {
        return description;
    }

    public String getDate()
    {
        return date;
    }

    public int getFirmID()
    {
        return firmID;
    }

    public int getNewsType()
    {
        return newsType;
    }

    public void write()
    {
        System.out.println(getTitle());
        System.out.println(getDescription());
        System.out.println(getUrl());
        System.out.println(getDate() + "\n");
    }




}
